package QL;

import java.util.Map;

public class ButlerBlockMixedAddRequest implements IQLRequest
{
    /// <summary>
    /// 区服Id
    /// </summary>
    public long ZoneId;

    /// <summary>
    /// 类型，1ip黑名单 2设备黑名单 3ip白名单 4设备白名单 5账号白名单
    /// </summary>
    public long BlockType;

    /// <summary>
    /// 对应的值
    /// </summary>
    public String BlockValue;

    /// <summary>
    /// 添加原因
    /// </summary>
    public String BlockReason;

    /// <summary>
    /// 操作人
    /// </summary>
    public String BlockOperator;

    @Override
    public String GetApiName()
    {
        return "butler.block.mixed.add";
    }

    @Override
    public void Validate()
    {
    }

    @Override
    public void AddParameters(Map<String, String> map)
    {
        map.put("zone_id", String.valueOf(ZoneId));
        map.put("block_type", String.valueOf(BlockType));
        map.put("block_value", BlockValue);
        map.put("block_reason", BlockReason);
        map.put("block_operator", BlockOperator);
    }
}
